package io.renren.service.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.dao.CourseDao;
import io.renren.entity.CourseEntity;
import io.renren.service.CourseService;

import java.util.List;


@Service("courseService")
public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> implements CourseService {
    @Override
    public List<CourseEntity> getCourse(){
        List<CourseEntity> list = baseMapper.getCourse();
        return list;
    }

    @Override
    public List<CourseEntity> searchCourse(String keyword,Integer userid){
        List<CourseEntity> list = baseMapper.searchCourse(keyword,userid);
        return list;
    }

    @Override
    public List<CourseEntity> searchTeacherCourse(String keyword,Integer userid){
        List<CourseEntity> list = baseMapper.searchTeacherCourse(keyword,userid);
        return list;
    }

    @Override
    public List<CourseEntity> getCourseList(Integer userid){
        List<CourseEntity> list = baseMapper.getCourseList(userid);
        return list;
    }

}
